<?php

class AccountDto {

    private $Id;
    private $Email;
    private $Password;
    private $FirstName;
    private $LastName;
    private $IsAdmin;

    function __construct($Id, $Email, $Password, $FirstName, $LastName, $IsAdmin) {
        $this->Id = $Id;
        $this->Email = $Email;
        $this->Password = $Password;
        $this->FirstName = $FirstName;
        $this->LastName = $LastName;
        $this->IsAdmin = $IsAdmin;
    }

    public function _construct($email, $pass, $firstName, $lastName) {
        $this->Email = $email;
        $this->Password = $pass;
        $this->LastName = $lastName;
        $this->FirstName = $firstName;
        $this->$IsAdmin = false;
        $this->$Id = -1;
    }

    public function getId() {
        return $this->Id;
    }

    public function getIsAdmin() {
        return $this->IsAdmin;
    }

    public function setId($Id) {
        $this->Id = $Id;
    }

    public function setIsAdmin($IsAdmin) {
        $this->IsAdmin = $IsAdmin;
    }

    public function getPassword() {
        return $this->Password;
    }

    public function setPassword($pass) {
        $this->Password = $pass;
    }

    public function getEmail() {
        return $this->Email;
    }

    public function setEmail($email) {
        $this->Email = $email;
    }

    public function getFirstName() {
        return $this->FirstName;
    }

    public function setFirstName($firstName) {
        $this->FirstName = $firstName;
    }

    public function getLastName() {
        return $this->LastName;
    }

    public function setLastName($lastName) {
        $this->LastName = $lastName;
    }

}

?>
